package cn.com.chengmandian.core.web.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("分页信息")
public class PageInfo implements Serializable {
    @ApiModelProperty("页码")
    private int pageNumber = 1;

    @ApiModelProperty("分页大小")
    private int pageSize = 20;

    @ApiModelProperty("排序字段")
    private String orderFiled = "id";

    @ApiModelProperty("排序规则")
    private String orderBy = "desc";
}
